﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Syk.Library.Common
{
    public static class DateTimeExtentions
    {
        /// <summary>
        /// Ignore millisecond
        /// </summary>
        /// <param name="dateTime"></param> 
        /// <returns></returns>
        public static DateTime Normalize(this DateTime dateTime)
        {
            return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, dateTime.Hour, dateTime.Minute, dateTime.Second);
        }
    }
}
